﻿using System.Collections.Generic;
using IDAL;
using Model;
using System;

namespace BLL
{
    public class TestItem_CPK
    {
        private static readonly ITestItem_CPK dal = DALFactory.DataAccess.CreateTestItem_CPK();

        public IList<CPKInfo> GetCPKbyPID_DT(string productTypeID, DateTime starttime,DateTime stoptime)
        {
            return dal.GetCPKbyPID_DT(productTypeID, starttime, stoptime);
        }

        public IList<CPKInfo> GetCPKbyPID_Month(string yearTime, string productTypeID)
        {
            return dal.GetCPKbyPID_Month(yearTime, productTypeID);
        }

        public IList<CPKInfo> GetCPKbyPID_Week(string yearTime, string productTypeID)
        {
            return dal.GetCPKbyPID_Week(yearTime, productTypeID);
        }
    }
}
